package com.exception.demo02;

public class Demo02 {
    public static void main(String[] args) {
        int a = 1;
        int b = 0;
        new Demo02().test(a,b);
    }
    public void test(int a, int b) throws ArithmeticException{
        System.out.println("进行除法运算");
        System.out.println(a/b);

    }
}
